var
log4js = require('log4js'),
logger = log4js.getLogger('common.route')
;

module.exports = function(app, route) {
    logger.trace("Init common routing");

    app.get(route, function(req, res) {
        logger.trace('enter app root');
        //var session = req.session;
	    //logger.debug(session);
        //if (session.auth && session.auth.loggedIn) {
            logger.info('session already existed');
            //logger.info(session.auth);
            // session already
            res.json({
                success: true
            });
        //} else {
        //    // no session, login required
        //    logger.debug('no session, login required');
        //    res.json({
        //        success: false,
        //        url: 'auth/cardgames'
        //    });
        //}
    });
};
